package ooday04;
/** 季节枚举的演示 */
public enum Seasons {
    /*
    // public static final Seasons SPRING = new Seasons();
    // public static final Seasons SUMMER = new Seasons();
    // public static final Seasons AUTUMN = new Seasons();
    // public static final Seasons WINTER = new Seasons();
    SPRING,SUMMER,AUTUMN,WINTER;  //表示Seasons固定的4个对象，都是常量
    */


   // public static final Seasons SPRING = new Seasons("春天","暖和");
   // public static final Seasons SPRING = new Seasons("夏天","热");
   // public static final Seasons SPRING = new Seasons("秋天","凉爽");
   // public static final Seasons SPRING = new Seasons("冬天","冷");

    SPRING("春天","暖和"),
    SUMMER("夏天","热"),
    AUTUMN("秋天","凉爽"),
    WINTER("冬天","冷");


    private String seasonName;
    private String seasonDesc;
    Seasons(String seasonName,String seasonDesc){
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }

    public String getSeasonName(){
        return seasonName;
    }
    public  void setSeasonName(String seasonName){
        this.seasonName = seasonName;
    }
    public String getSeasonDesc(){
        return seasonDesc;
    }
    public  void setSeasonDesc(String seasonDesc){
        this.seasonDesc = seasonDesc;
    }

}
